// allreduce_c.c
#include <mpi.h>

void allreduce_c(const double* sendbuf, double* recvbuf, const int* count)
{
    MPI_Allreduce(sendbuf, recvbuf, *count, MPI_DOUBLE, MPI_SUM, MPI_COMM_WORLD);
}

